package com.example.whatrubbish.mapper;

import com.example.whatrubbish.model.CommodityDetail;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Mapper
@Component("CommodityDetailMapper")
public interface CommodityDetailMapper {
    CommodityDetail selectByCommodityId(Long commodityId);

    int deleteByCommodityId(Long commodityId);

    int deleteByPrimaryKey(Long id);

    int insert(CommodityDetail record);

    int insertSelective(CommodityDetail record);

    CommodityDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CommodityDetail record);

    int updateByPrimaryKeyWithBLOBs(CommodityDetail record);

    int updateByPrimaryKey(CommodityDetail record);
}